<template>
  <div class="category">
    <div class="category-header">
      <div>
        <span class="el-icon-arrow-down"></span>
      </div>
      <h2>手机</h2>
    </div>
    <ul class="category-body">
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
      <li>
        <a href="">
          <img src="" alt="" />
          <span>小米12Pro</span>
        </a>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "CategoryItem",
};
</script>

<style lang="less" scoped>
.category {
  width: 1226px;
  margin: 0 auto;
  padding-bottom: 100px;
  .category-header {
    display: flex;
    align-items: center;
    height: 74px;
    div {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      margin-right: 18px;
      border: 1px solid #b0b0b0;
      color: #b0b0b0;
      text-align: center;
      span {
        font-size: 14px;
        font-weight: 900;
      }
    }
    h2 {
      font-size: 18px;
      color: #ff6700;
      font-weight: 400;
      cursor: pointer;
    }
  }
  .category-body {
    border-top: 1px solid #e0e0e0;
    li {
      width: 244px;
      height: 136px;
      padding-top: 24px;
      border-right: 1px solid #e0e0e0;
      border-bottom: 1px solid #e0e0e0;
      text-align: center;
      display: inline-block;
      a {
        color: #757575;
        img {
          display: block;
          width: 70px;
          height: 70px;
          margin: 0 auto 24px;
        }
        span {
          display: block;
          max-height: 20px;
          overflow: hidden;
          font-size: 14px;
        }
        &:hover {
          color: #f60;
        }
      }
      &:nth-child(5n) {
        border-right: none;
      }
    }
  }
}
</style>